import {Route,Switch} from 'react-router-dom'
import Admin from './pages/Admin'
import Login from './pages/Login'
import './App.scss';

function App() {
  return (
    <div className="App">
      <Switch>
        <Route path="/login" component={Login}></Route>
        <Route path="/home" component={Admin}></Route>
        <Route path="/" component={Admin}></Route>
      </Switch>
    </div>
  );
}

export default App;
